cmake_minimum_required(VERSION 3.10)

project(jstart)

set(CMAKE_CXX_STANDARD 11)

set(JAVA_HOME "$ENV{JAVA_HOME}")
# set(WINDRES_EXE "windres.exe")
# set(CMAKE_VERBOSE_MAKEFILE on)

include_directories(
    ${JAVA_HOME}/include
    ${JAVA_HOME}/include/win32
)

# 设置msvc编译器 源代码 字符编码
add_compile_options("$<$<CXX_COMPILER_ID:MSVC>:/source-charset:utf-8>")

add_subdirectory(src)
